package com.zenchn.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;

@ApiModel(value="登录账号密码对象",description="登录账号密码对象")
public class LoginAccountDO {

    @NotEmpty(message = "账号不能为空")
    @ApiModelProperty(value="账号")
    private String account;

    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value="密码")
    private String password;

    @ApiModelProperty(value="记住我")
    private Boolean rememberMe;


    @ApiModelProperty(value="访问参数")
    private String accessParameter;


    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Boolean getRememberMe() {
        return rememberMe!=null?rememberMe:false;
    }

    public void setRememberMe(Boolean rememberMe) {
        this.rememberMe = rememberMe;
    }

    public String getAccessParameter() {
        return accessParameter;
    }

    public void setAccessParameter(String accessParameter) {
        this.accessParameter = accessParameter;
    }

    @Override
    public String toString() {
        return "LoginAccountDO{" +
                "account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", rememberMe=" + rememberMe +
                ", accessParameter=" + accessParameter +
                '}';
    }
}
